package com.lq.educationsystem.lqsubject.mapper;

import com.lq.educationsystem.lqsubject.entiy.TeacherSubjectTb;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【teacher_subject_tb】的数据库操作Mapper
* @createDate 2024-04-29 19:28:01
* @Entity com.lq.educationsystem.lqsubject.entiy.TeacherSubjectTb
*/
public interface TeacherSubjectTbMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TeacherSubjectTb record);

    int insertSelective(TeacherSubjectTb record);

    TeacherSubjectTb selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TeacherSubjectTb record);

    int updateByPrimaryKey(TeacherSubjectTb record);

    /**
     * 查询所有的数据
     * @param teacherSubjectTb
     * @param start
     * @param pageSize
     * @return
     */
    List<TeacherSubjectTb> queryList(@Param("teacherSubjectTb") TeacherSubjectTb teacherSubjectTb,@Param("start") Integer start,@Param("pageSize") Integer pageSize);

    int queryCount(@Param("teacherSubjectTb") TeacherSubjectTb teacherSubjectTb);


    List<TeacherSubjectTb> queryTeacherSubjectInfoByTeacherSubjectId(@Param("teacherSUbjectInfoIdList") List<Integer> teacherSUbjectInfoIdList);

    /**
     * 教师id
     *
     * @param teacherId
     * @return
     */
    List<TeacherSubjectTb> queryTeacherSubjectInfoByTeacherId(@Param("teacherId") Integer teacherId);
}
